Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: remote var with let #2020

Closed
wants to merge 3 commits into from
Closed

Conversation

shengxj1
Copy link
Contributor

@shengxj1 shengxj1 commented Jan 8, 2025

Relates to

Risks

Background

What does this PR do?

remote var with let for mordern javascript

What kind of change is this?

Documentation changes needed?

Testing

Where should a reviewer start?

Detailed testing steps

ag-wnl
ag-wnl previously approved these changes Jan 8, 2025
@ag-wnl ag-wnl changed the base branch from main to develop January 8, 2025 18:22
@ag-wnl ag-wnl dismissed their stale review January 8, 2025 18:22

The base branch was changed.

ag-wnl
ag-wnl previously approved these changes Jan 8, 2025
@@ -122,7 +122,7 @@ export const zgUpload: Action = {
const indexer = new Indexer(zgIndexerRpc);
const flowContract = getFlowContract(flowAddr, signer);

var [tx, err] = await indexer.upload(
let [tx, err] = await indexer.upload(
Copy link
Collaborator

@ag-wnl ag-wnl Jan 8, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Check the reason smoke test is failing, here we are using let for defining same names in the same block scope

@monilpat
Copy link
Collaborator

Closing this out feel free to open another PR that codemods all var to let

@monilpat monilpat closed this Jan 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants